# link the proto file to the current directory
ln -s ../src/main/proto/hi.proto hi.proto

. ./gen_pb.zsh

echo generated_pb/ >> .gitignore


# go run . --safety=2 --mockMore=true
# go run . --safety=2
# 🦜 :[2024-03-02] we updated to add bpf
go build && sudo ./a.local --safety=2

E2=(evans --host localhost --port 50051 --proto ./hi.proto)
# E2=(evans --host localhost --port 50051)
echo '{"name": "aaa"}' | $E2 cli call Greeter.ChangeRootPswd
echo '{}' | $E2 cli call Greeter.GetResourceInfo
